<form action="entities/generate_crud/{$entity->id}/" method="post" enctype="multipart/form-data">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">×</button>
      <h3>Generate CRUD</h3>
    </div>

    <div class="modal-body">

        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>Action</th>
                    <th>Name</th>
                    <th>Controller</th>
                    <th>View</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Create</td>
                    <td><input name="create" type="text" value="create"/></td>
                    <td>
                        <label for="create_check" class="checkbox">
                            <input id="create_check" name="create_check" type="checkbox" />
                            Write the code for me!
                        </label>
                    </td>
                    <td>
                        <label for="create_view_check" class="checkbox">
                            <input id="create_view_check" name="create_view_check" type="checkbox" checked="checked" />
                            Code the view for me!
                        </label>
                    </td>
                </tr>

                <tr>
                    <td>Read</td>
                    <td><input name="read" type="text" value="read"/></td>
                    <td>
                        <label for="read_check" class="checkbox">
                            <input id="read_check" name="read_check" type="checkbox" />
                            Write the code for me!
                        </label>
                    </td>
                    <td>
                        <label for="read_view_check" class="checkbox">
                            <input id="read_view_check" name="read_view_check" type="checkbox" checked="checked" />
                            Code the view for me!
                        </label>
                    </td>
                </tr>

                <tr>
                    <td>Update</td>
                    <td><input name="update" type="text" value="update"/></td>
                    <td>
                        <label for="update_check" class="checkbox">
                            <input id="update_check" name="update_check" type="checkbox" />
                            Write the code for me!
                        </label>
                    </td>
                    <td>
                        <label for="update_view_check" class="checkbox">
                            <input id="update_view_check" name="update_view_check" type="checkbox" checked="checked" />
                            Code the view for me!
                        </label>
                    </td>
                </tr>

                <tr>
                    <td>Delete</td>
                    <td><input name="delete" type="text" value="delete"/></td>
                    <td>
                        <label for="delete_check" class="checkbox">
                            <input id="delete_check" name="delete_check" type="checkbox" />
                            Write the code for me!
                        </label>
                    </td>
                    <td>Nothing to generete</td>
                </tr>

            </tbody>
        </table>

    </div>
    <!-- .modal-body -->

    <div class="modal-footer">
        <button class="btn" data-dismiss="modal">Cancel</button>
        <button class="btn btn-primary" type="submit">Generate</button>
    </div>
</form>
